.PHONY: all clean

all: $(patsubst %.erl, build/%.beam, $(wildcard *.erl))

build/%.beam: %.erl
	mkdir -p build
	erlc -o build $<

clean:
	rm -rf build
